package com.joysuch.wwyt.mh.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableId;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zqw
 * @since 2022-05-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_mh_major_hazard_plan")
@ApiModel(value = "MhMajorHazardPlan对象", description = "")
public class MhMajorHazardPlan extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "计划名称")
    private String planName;

    @ApiModelProperty(value = "检查人员类型:0主要负责人,1技术负责人,2操作负责人")
    private Integer checkUserType;

    @ApiModelProperty(value = "检查人员id集合")
    private String checkUserIds;

    @ApiModelProperty(value = "危险源id")
    private Long majorHazardId;

    @ApiModelProperty(value = "周期类型:0周检查 1季度检查 2-月度检查3-半年度检查")
    private Integer cycleType;

    @ApiModelProperty(value = "循环类型:0周期内循环,1单次")
    private Integer loopType;

    @ApiModelProperty(value = "周期数据年:季度单次确定哪一年,周确定哪一年")
    private Integer cycleYear;

    @ApiModelProperty(value = "周期数据月:周单次确定哪一月")
    private Integer cycleMonth;

    @ApiModelProperty(value = "周期数据:周单次->存本年选中的周 ;周循环->存本年月份集合;季度单次->存选中的季度;季度循环->存选中年分集合")
    private String cycleData;

    @ApiModelProperty(value = "任务时间(描述)")
    private String taskTimeDesc;

    @ApiModelProperty(value = "提前提醒天数")
    private Integer reminderDays;

    @ApiModelProperty(value = "随行人员id集合")
    private String entourageIds;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "制定人员id")
    private Long formulateUserId;

    @ApiModelProperty(value = "制定部门id")
    private Long formulateDepartId;

    @ApiModelProperty(value = "制定日期")
    private Date formulateDate;

}
